<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8" import="com.tz.hospital.entity.*, java.util.List "%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
<!-- 引入 layui.css -->
<link rel="stylesheet" href="/hospital_system/layui-v2.6.8/layui/css/layui.css"/>
<!-- 引入 layui.js -->
<script src="/hospital_system/layui-v2.6.8/layui/layui.js"></script>
</head>
<body>
<%if(session.getAttribute("userid")==null){ %>
未登录！只有登录后才能进行挂号预约哦！

<%}else{ %>
 <table class="layui-table"  style="background-color:transparent; border:0px; ">
        <tr>
       
       
           <td>医生</td>
           <td>类别</td>
           <td>职位</td>
           <td>单价</td>
           <td>评价</td>
           <td>点击以预约</td>
           
           
       </tr>
       
       <tbody>
       <% List<hospital_doctor> l =(List) request.getAttribute("date"); %>
        <% if (l!=null){ %>
      <%  for(hospital_doctor e:l){ %>
        	  <tr>
        	  <td><%=e.getYsname() %></td>
        	  <td><%if(e.getYslevel()==1){%>
        	      专家
        	      <%}else if(e.getYslevel()==0){ %>
        	      普通
        	      <%} %>
        	  </td>
        	  <td><%=e.getYspost() %></td>
        	  <td><%=e.getYsmoney() %></td>
        	  <td><%if(e.getAssess()>80){ %>
        	  好评如潮
        	   <%}else if(e.getAssess()<=80 && e.getAssess()>60){ %>
        	   特别好评
        	   <%}else if(e.getAssess()<=60 && e.getAssess()>40){ %>
        	   多半好评
        	   <%}else if(e.getAssess()<=40){ %>
        	   褒贬不一
        	   <%} %>
        	  </td>
        	  <td><button onclick="location.href='/hospital_system/workController?ksid=<%=e.getYsid() %>'">预约</button></td>
        	  
        	  </tr>
        	  
        	  
         <% } %>
         <% } %>
       </tbody>
       
       
     </table>
     <%} %>
</body>
</html>